package com.bilgeadam.oop.program;

/**
 *  
 * @author Bora SAYINER
 * @since Nov 29, 2014 2:02:23 PM
 * @version 1.0.0
 */
public class Driver {

	public static void main(String[] args) throws InterruptedException {
		Shape[] shapes = new Shape[3];
		shapes[0] = new Rectangle();
		shapes[1] = new Circle();
		shapes[2] = new Circle();
		while (true) {
			for (int i = 0; i < shapes.length; i++) {
				shapes[i].draw();
			}
			Thread.sleep(1000);
			System.out.println("----------------------------------");
		}
	}
}
